package com.chainshop.inboundRecords.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chainshop.inboundRecords.mapper.InboundRecordsMapper;
import com.chainshop.inboundRecords.domain.InboundRecords;
import com.chainshop.inboundRecords.service.IInboundRecordsService;

/**
 * 入库记录Service业务层处理
 * 
 * @author zzd
 * @date 2024-08-12
 */
@Service
public class InboundRecordsServiceImpl implements IInboundRecordsService 
{
    @Autowired
    private InboundRecordsMapper inboundRecordsMapper;

    /**
     * 查询入库记录
     * 
     * @param id 入库记录主键
     * @return 入库记录
     */
    @Override
    public InboundRecords selectInboundRecordsById(Integer id)
    {
        return inboundRecordsMapper.selectInboundRecordsById(id);
    }

    /**
     * 查询入库记录列表
     * 
     * @param inboundRecords 入库记录
     * @return 入库记录
     */
    @Override
    public List<InboundRecords> selectInboundRecordsList(InboundRecords inboundRecords)
    {
        return inboundRecordsMapper.selectInboundRecordsList(inboundRecords);
    }

    /**
     * 新增入库记录
     * 
     * @param inboundRecords 入库记录
     * @return 结果
     */
    @Override
    public int insertInboundRecords(InboundRecords inboundRecords)
    {
        return inboundRecordsMapper.insertInboundRecords(inboundRecords);
    }

    /**
     * 修改入库记录
     * 
     * @param inboundRecords 入库记录
     * @return 结果
     */
    @Override
    public int updateInboundRecords(InboundRecords inboundRecords)
    {
        return inboundRecordsMapper.updateInboundRecords(inboundRecords);
    }

    /**
     * 批量删除入库记录
     * 
     * @param ids 需要删除的入库记录主键
     * @return 结果
     */
    @Override
    public int deleteInboundRecordsByIds(Integer[] ids)
    {
        return inboundRecordsMapper.deleteInboundRecordsByIds(ids);
    }

    /**
     * 删除入库记录信息
     * 
     * @param id 入库记录主键
     * @return 结果
     */
    @Override
    public int deleteInboundRecordsById(Integer id)
    {
        return inboundRecordsMapper.deleteInboundRecordsById(id);
    }
}
